package com.ymttest.business.service.productdata.service.api;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.MapUtil;

public class PassProductViolateCall extends YmatouAutoTestCall{
	private static String opurl="/api/Violate/PassProductViolate";
	
	public PassProductViolateCall(){
		super("http://productviolate.iapi.ymatou.com/", opurl, "POST", "JSON");
	}
	
	
	@Override
	public void addDefHeader(){
		client.addHeader("Content-Type", "application/json");
	}
	
	public JSONObject callAndGetReturnData(String productId){
		return callAndGetReturnData(MapUtil.hashMap("ProductId",productId));
	}
	
	 
	

	
	public static void main(String[] args) {
		new PassProductViolateCall().callAndGetReturnData("00306d6a-8f56-4954-af56-44a7fb5f5cab");
	}
}
